Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference
launchProcedure
This procedure launches a business logic procedure or manager procedure. It determines if the procedure is already running and whether the existing instance should be replaced or a new instance run. If required, the procedure also connects to the AppServer partition. The procedure then updates the temp-table of running persistent procedures with the appropriate details.
Location: af\app\afsesmngrp.i Parameters:INPUT pcPhysicalName AS CHARACTERThe physical object filename, with path and extension.
INPUT plOnceOnly AS LOGICALIf
YES, then the procedure checks for an already running instance and uses it, if possible.INPUT pcOnAppserver AS CHARACTERAccepts values of
YES,NO, orAPPSERVER.INPUT pcAppserverPartition AS CHARACTERThe AppServer partition name to run on.
INPUT plRunPermanent AS LOGICALThe default is
NO.OUTPUT phProcedureHandle AS HANDLEThe procedure handle of object run.
Notes:
- If the
plRunPermanentflag is set toYES, then this procedure is not automatically killed when an AppServer agent is deactivated. Ordinarily this flag should beNO, and all procedures left running should be deleted at the end of an AppServer request by the deactivation routine. When procedures are closed down correctly, they are removed from the temp-table and deleted. This behavior tidies up any procedures started outside of this control procedure or shut down incorrectly for some reason.- If the
pcOnAppserverflag is set toAPPSERVER, then this procedure can only be run on AppServer. If the flag isYESand no AppServer partition is passed in, then it defaults to theAstraAppServerand the session handle,gshAstraAppserverhandle, is used for the AppServer. If any other partition is passed in and the flag is notNO, then the partition is connected if required. Any partitions connected in this manner are disconnected by the shutdown procedure,af\sup2\afshutdwnp.p.Examples: See the- Generally, you do not need to run this procedure for most of the Progress Dynamics Managers because their handles are available through the systemwide global shared variables. However, in order to add the Managers to the temp-table of running persistent procedures, this procedure is used for the Managers when they are first run.
launchClassObjectfunction inry\app\ryrepmngrp.i.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |